Skip to content

docs: readthedocs build fix - #77

Merged
choppsv1 merged 1 commit into
mainfrom
liambrady/docs_fix_2
Oct 11, 2025
Merged

choppsv1 merged 1 commit into
mainfrom
liambrady/docs_fix_2

Conversation

@liambrady

@liambrady liambrady commented Oct 8, 2025 •

Copy link
Copy Markdown
Contributor

Adds the missing sphinx-prompt dependency to the build process. This dependency is part of the 'dev' dependency group, however, it is currently not possible to install dependency groups to the system site-package (either with pip or uv).

link to the built documentation with this fix: https://munet.readthedocs.io/en/liambrady-docs_fix_2/

closes #76

Adds the missing sphinx-prompt dependency to the build process. This
dependency is part of the 'dev' dependency group, however, it is
currently not possible to install dependency groups to the system
site-package (either with pip or uv).

Signed-off-by: Liam Brady <lbrady@labn.net>
@liambrady
liambrady requested a review from choppsv1 October 8, 2025 18:51
@liambrady liambrady added bug Something isn't working documentation Improvements or additions to documentation labels Oct 8, 2025
Comment thread readthedocs.yml
@@ -8,5 +8,7 @@ build:
# - pip install uv

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this running in the munet workspace? Can we just use uv to install things?

Although, this is for producing the docs right? If it's not actually running munet, I'm not sure why we need to install munet at all.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for producing the docs, correct.

Based on my limited understanding, uv does not support installing dependency groups into the workspaces using 'uv pip install', since they mirror the 'pip install' CLI. Maybe with the exception of the very latest versions of pip, you cannot requirements listed in dependency groups (e.g. 'dev' or 'ide' in the pyproject.yaml), so it is similarly not possible with uv.

Instead, you need to use something like 'uv sync --dev', which will install them to whatever workspace that uv has created.

Since it doesn't look like we are using the uv workspace (or uv at all, since you commented it out), I figured it is just simpler to install the dependency ourselves and move on.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although, this is for producing the docs right? If it's not actually running munet, I'm not sure why we need to install munet at all.

Agreed, we might be able to get away with just installing sphinx and sphinx-prompt. Should I test that and update the readthedocs.yml file if it is successful?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that works, sure.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the munet docstrings are referenced in order to build the API doc pages. They appear to pull from the installed munet version, so we can't get away with skipping the munet install.

@liambrady
liambrady requested a review from choppsv1 October 8, 2025 19:33

@choppsv1 choppsv1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that works, sure.

@liambrady
liambrady requested a review from choppsv1 October 10, 2025 16:19
@choppsv1
choppsv1 merged commit c03847a into main Oct 11, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: build failures

2 participants